import Vue from 'vue'
import Router from 'vue-router'

import Login from '@/pages/login'
import Index from '@/pages/index'
import Register from '@/pages/register'
import addTo from '@/pages/addTo'
import mainTable from '@/pages/mainTable'


import fromOne from '@/pages/fromOne'
import fromtwo from '@/pages/fromtwo'
import fromthree from '@/pages/fromthree'
import fromfour from '@/pages/fromfour'
import fromfive from '@/pages/fromfive'
import fromsix from '@/pages/fromsix'
import choicefirm from '@/pages/choiceFirm'
import choiceFirmType from '@/pages/choiceFirmType'
import bindCompany from '@/pages/bindCompany'
import addBindCompany from '@/pages/addBindCompany'
import uploadTables from '@/pages/uploadTables'





Vue.use(Router)

export default new Router({
  routes: [
    {
      // 登陆页面
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      // 主页面
      path: '/home',
      name: 'Index',
      component: Index,
    },
    {
      // 注册页面
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      // 添加单位页面
      path: '/addTo',
      name: 'addTo',
      component: addTo
    },
    {
      // 711表
      path: '/mainTable',
      name: 'mainTable',
      component: mainTable
    },
    {
      // 711-1表
      path: '/fromOne',
      name: 'fromOne',
      component: fromOne
    },
    {
      // 711-2表
      path: '/fromtwo',
      name: 'fromtwo',
      component: fromtwo
    },
    {
      // 711-3表
      path: '/fromthree',
      name: 'fromthree',
      component: fromthree
    },
    {
      // 711-4表
      path: '/fromfour',
      name: 'fromfour',
      component: fromfour
    },
    {
      // 711-5表
      path: '/fromfive',
      name: 'fromfive',
      component: fromfive
    },
    {
      // 711-6表
      path: '/fromsix',
      name: 'fromsix',
      component: fromsix
    },
    {
      // 选择单位页面
      path: '/choicefirm',
      name: 'choicefirm',
      component: choicefirm
    },
    {
      // 选择单位类型
      path: '/choiceFirmType',
      name: 'choiceFirmType',
      component: choiceFirmType
    },
    {
      // 绑定单位
      path: '/bindCompany',
      name: 'bindCompany',
      component: bindCompany
    },
    {
      // 绑定单位时新增单位
      path: '/addBindCompany',
      name: 'addBindCompany',
      component: addBindCompany
    },
    {
      // 上传表格
      path: '/uploadTables',
      name: 'uploadTables',
      component: uploadTables
    },
  ]
})

